@import '../theme.color.less';

//登录基座
.muse-login-wrapper {
  background-image: url('../../images/login/bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100vw;
  position: relative;

  //logo等
  .company-logo-wrapper {
    position: absolute;
    top: 0;
    left: 148px;
    bottom: 0;
    height: 100vh;
    display: flex;
    padding-top: 118px;
    .logo-full {
      height: 128px;
      width: auto;
    }
    .company-logo {
      height: 72px;
      width: auto;
    }
    .company-name {
      line-height: 1;
      display: flex;
      align-items: center;
      margin-left: 20px;
      font-size: 36px;
      color: #FFFFFF;
    }
  }


  //登录功能容器
  .muse-login-function-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    .strechable-right {
      min-width: 768px;
      height: 100vh;
      width: 40vw;
      justify-content: left;
      //登录内容区域
      .muse-login-field {
        position: relative;
        height: 100vh;
        width: 768px;
        background-image: url('../../images/login/bg-login-wrapper.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        backdrop-filter: blur(4px);
        box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
  
        //登录内容
        .login-content {
          width: 580px;
          padding: 0 80px;
          .login-content-title {
            margin-bottom: 68px;
            h2 {
              line-height: 1;
              font-size: 48px;
              color: #000;
              margin-bottom: 20px;
              span {
                color: var(--muse-primary-color);
              }
            }
            h4 {
              line-height: 48px;
              font-size: 32px;
              color: #333;
              font-weight: 400;
            }
          }
  
          //登录tab容器
          .login-tab-wrapper {
            width: 420px;
  
            .login-tab-header {
              display: flex;
              align-items: center;
              margin-bottom: 24px;
              .login-tab-option {
                display: flex;
                align-items: center;
                margin-right: 20px;
                font-size: 16px;
                height: 36px;
                // padding: 0 5px;
                border-bottom: 5px solid transparent;
                color: #393939;
                cursor: pointer;
                &.active {
                  color: var(--muse-font-color);
                  font-size: 18px;
                  height: 36px;
                  border-bottom-color: var(--muse-primary-color);
                }
              }
            }
  
            .login-tab-rail {
              display: flex;
              overflow: hidden;
            }
  
            .login-tab-content {
              width: 420px;
              transition: all ease .3s;
              flex-shrink: 0;
            }
          }
  
          //表单
          .form-item {
            margin-bottom: 16px;
            .form-item_label {
              display: flex;
              align-items: center;
              justify-content: space-between;
              line-height: 44px;
              .label {
                font-size: 16px;
                color: var(--muse-gray-color-8);
              }
              .error {
                font-size: 14px;
                color: var(--muse-danger-color);
                .iconfont {
                  margin-right: 3px;
                }
              }
            }
            &.auto-login {
              padding: 10px 0 0 0;
              display: flex;
              align-items: center;
              .check-box-wrapper {
                flex: 1;
              }
              .forget-password {
                font-size: 14px;
                font-weight: normal;
              }
            }
          }
  
          //输入行
          .input-row {
            display: flex;
            align-items: center;
            border-radius: 2px;
            border: 2px solid #fff;
            background-color: #fff;
            transition: all ease-in-out .2s;
            overflow: hidden;
            &:last-child {
              margin-bottom: 0;
            }
            &.valuable {
              .prefix {
                color: var(--muse-primary-color);
              }
            }
            &.error {
              border-bottom: 2px solid var(--muse-danger-color);
              .user-suggestion-panel {
                border-color: var(--muse-danger-color);
              }
              .prefix {
                color: var(--muse-danger-color);
              }
            }
            &.active {
              border-bottom: 2px solid var(--muse-primary-color);
              .user-suggestion-panel {
                border-color: var(--muse-primary-color);
              }
              .prefix {
                color: var(--muse-primary-color);
              }
            }
            .prefix {
              padding: 0 14px;
              color: #A8ABB0;
              transition: all ease-in-out .2s;
              border-right: 1px solid #DDDDDD;
            }
            .suffix {
              padding: 0 20px 0 17px;
              color: var(--muse-primary-color);
              font-size: 20px;
              transition: all ease-in-out .2s;
              &.show-plain-text {
                color: #A8ABB0;
                cursor: pointer;
                &:hover {
                  opacity: 1;
                }
                &.active {
                  color: var(--muse-primary-color);
                }
              }
              //发送验证码
              .acquire-verify-code {
                padding: 8px 6px;
                border-radius: 4px;
                color: #666666;
                background-color: #EEEEEE;
                font-size: 16px;
                line-height: 1;
                cursor: not-allowed;
                &.avalible {
                  cursor: pointer;
                  color: var(--muse-primary-color);
                  background-color: rgba(56, 117, 246, 0.1);
                }
                &.sent {
                  cursor: not-allowed;
                }
              }
            }
            .input {
              position: relative;
              flex: 1;
              input {
                width: 100%;
                border: none;
                height: 46px;
                outline: none;
                font-size: 16px;
                color: #111;
                padding: 0 20px;
                &:-webkit-autofill::first-line {
                  font-size: 18px !important;
                }
              }
              &.examcode {
                input {
                  font-size: 18px;
                  &.inputed {
                    font-size: 22px;
                  }
                }
              }
              .clear-icon {
                opacity: 0.5;
                position: absolute;
                color: #CDD5DF;
                top: 0;
                right: 0;
                height: 100%;
                display: flex;
                align-items: center;
                cursor: pointer;
                transition: all ease-in-out .2s;
                &:hover {
                  opacity: 1;
                }
              }
  
              &.captcha-wrapper {
                display: flex;
                input {
                  flex: 1;
                }
                .slide-verify-wrapper {
                  display: inline-flex;
                  padding: 2px;
                }
                .get-captcha {
                  height: 100%;
                  display: inline-flex;
                  align-items: center;
                  justify-content: center;
                  background-color: var(--muse-primary-color);
                  color: var(--muse-white-color-1);
                  padding: 0 8px;
                  border-radius: 4px;
                  font-size: 14px;
                  cursor: pointer;
                  &:not(.count-down) {
                    transition: all ease-in-out .2s;
                    &:hover,
                    &:focus {
                      background-color: lighten(@primary-color, 15%);
                    }
                  }
                  &.count-down {
                    color: var(--muse-primary-color);
                    background-color: #FFF;
                  }
                }
              }
            }
          }

          //登录区域
          .login-button-field {
            width: 100%;

            .login-button {
              margin-top: 32px;
              width: 100%;
              height: 50px;
              background-color: var(--muse-primary-color);
              color: #FFFFFF;
              display: flex;
              align-items: center;
              justify-content: center;
              border-radius: 2px;
              font-size: 18px;
              letter-spacing: 10px;
              transition: all ease-in-out .2s;
              &:hover,
              &:focus {
                background-color: lighten(@primary-color, 15%);
              }
            }
          }
        }
      }
    }
  }
}